package tmc.main;

import org.apache.log4j.Logger;
import org.geotools.factory.CommonFactoryFinder;
import org.geotools.styling.StyleFactory;

import tmc.gui.TMCFrame;


public class TMC {

	private static Logger LOGGER = Logger.getLogger(TMC.class);
	static StyleFactory styleFactory = CommonFactoryFinder.getStyleFactory(null);

	/**
	 * TMC app - application for converting vector data into raster files
	 * 
	 * @param args
	 */
	public static void main(String[] args) {
		try{
			new TMCFrame();
		} catch(Exception e){
			LOGGER.error("Error occured :" + e.getMessage());
			LOGGER.error("Caused by: " + e.getCause());
			e.printStackTrace();
		}
	}
	
	public static StyleFactory getStyleFactory(){
		return styleFactory;
	}

}
